package com.keta.foundation.service;

import java.util.List;

import org.springframework.data.jpa.domain.Specification;

import com.keta.foundation.entity.Organization;
import com.keta.foundation.util.dwz.Page;

public interface OrganizationService {

	/**
	 * 根据父Id获取子 组织 List
	 */
	List<Organization> getByParentId(Long parentId, Page page);

	List<Organization> getByParentId(Long parentId);

	void saveOrUpdate(Organization org);

	Organization get(Long id);

	List<Organization> getAll();

	List<Organization> getAll(Specification<Organization> specification, Page page);

	/**
	 * Root可以有多个
	 */
	List<Organization> getRoot();

	void delete(Long id);

}
